package com.company.oa.hr.dto.recruitment;

import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
public class ResumeDTO {
    private Long id;
    
    @NotNull(message = "职位ID不能为空")
    private Long positionId;
    
    @NotBlank(message = "职位名称不能为空")
    private String positionName;
    
    @NotBlank(message = "候选人姓名不能为空")
    private String candidateName;
    
    @NotNull(message = "性别不能为空")
    private Integer gender;
    
    @NotNull(message = "年龄不能为空")
    private Integer age;
    
    @NotBlank(message = "手机号不能为空")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
    private String phone;
    
    @Email(message = "邮箱格式不正确")
    private String email;
    
    private String education;
    private String school;
    private String major;
    private String experience;
    private String source;
} 